<!DOCTYPE html>
<html>
<head>
	<title>权限分配</title>
	<meta charset="UTF-8">
	<script type="text/javascript" src="__PUBLIC__/hdjs/jquery-1.11.3.min.js"></script>
    <link rel="stylesheet" href="__PUBLIC__/hdjs/hdjs.css"/>
    <script type="text/javascript" src="__PUBLIC__/hdjs/hdjs.min.js"></script>
	<link href="__PUBLIC__/css/mine.css" type="text/css" rel="stylesheet" />
</head>
<body>
<div class="div_head">
	<span>
		<span style="float: left;">当前位置是：用户管理 >></span><span>权限分配</span>
	</span>
</div>
<div class="auto_l_b">
    <form name="form1" method="post" action="__SELF__">
    <dl>
    <foreach name='info1' item='vo1'>
    	<dt>
        	<if condition="in_array($vo1['auth_id'],$role_auth_id_array)">
            	<input type="checkbox" name="auth[]" value="{$vo1.auth_id}" checked="checked" />
            <else/>
            	<input type="checkbox" name="auth[]" value="{$vo1.auth_id}" />
            </if>
        	{$vo1.auth_name}
        </dt>
        
        <foreach name='info2' item='vo2'>
       	  <if condition="$vo2['auth_pid'] eq $vo1['auth_id']">
            	<dd>
                <if condition="in_array($vo2['auth_id'],$role_auth_id_array)">
                	<input type="checkbox" name="auth[]" value="{$vo2.auth_id}" checked='checked' />
                <else/>
                	<input type="checkbox" name="auth[]" value="{$vo2.auth_id}" />
                </if>
                {$vo2.auth_name}
                
            </dd>
            </if>
        </foreach>
    </foreach>
    </dl>
    <input type="submit" name="button" class="hd-btn hd-btn-default" value="提交">
    </form>
</div>
</body>
</html>
